package com.lingnan.service;

import com.lingnan.entity.po.Blacklist;
import com.lingnan.entity.vo.Result;
import org.springframework.transaction.annotation.Transactional;

public interface BlacklistService {
    @Transactional
    Result addBlacklist(Blacklist blacklist);

    @Transactional
    Blacklist revokeBlacklist(Long id, Long operatorId);  // 直接返回实体

    Result getBlacklistPage(int page, int size, Long sourceId, Long targetId, Integer targetType, Integer status);

    Result<Blacklist> getById(Long id);  // 保持Result包装
}
